<div class="page page-form" data-ng-controller="updateUser" onclick="setDate()">
    <div class="panel panel-default">
        <div class="panel-heading"><strong><span class="glyphicon glyphicon-th"></span>&nbsp;&nbsp;&nbsp;&nbsp;修改用户信息</strong></div>
        <div class="panel-body">
            <form style="margin-left: 10%;" class="form-horizontal form-validation" data-ng-submit="updateUser()">
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>登录名</label>
                    </div>
                    <div class="col-sm-4">
                        {{info.username}}
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>亲属姓名</label>
                    </div>
                    <div class="col-sm-4">
                        <input type="text"
                               class="form-control"
                               data-ng-model="info.clanName"
                               placeholder="最小长度2, 最大长度 6"
                               data-ng-minlength="2"
                               data-ng-maxlength="6">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>姓名</label>
                    </div>
                    <div class="col-sm-4">
                        {{info.realname}}
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>关系</label>
                    </div>
                    <div class="col-sm-4">
                        <select class="col-sm-12" data-ng-model="info.relation" style="font-size: 15px;height: 35px;">
                            <option value="1">父子</option>
                            <option value="2">父女</option>
                            <option value="3">母子</option>
                            <option value="4">母女</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>性别</label>
                    </div>
                    <div class="col-sm-4">
                        {{info.sex}}
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>亲属电话</label>
                    </div>
                    <div class="col-sm-4">
                        <input type="text"
                               class="form-control"
                               data-ng-model="info.clanPhone"
                               data-ng-minlength="11"
                               data-ng-maxlength="11"
                               placeholder="长度为11位">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>身份证号</label>
                    </div>
                    <div class="col-sm-4">
                        <input type="text"
                               class="form-control"
                               data-ng-model="info.userIDcard"
                                >
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>部门</label>
                    </div>
                    <div class="col-sm-4">
                        <select class="col-sm-12" data-ng-model="info.job" style="font-size: 15px;height: 35px;"
                                data-ng-options="m.id as m.name for m in dept">
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>电话1</label>
                    </div>
                    <div class="col-sm-4">
                        <input type="text"
                               class="form-control"
                               data-ng-model="info.phone1"
                               data-ng-minlength="11"
                               data-ng-maxlength="11"
                               placeholder="长度为11位">
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>区域</label>
                    </div>
                    <div class="col-sm-4">
                        <select class="col-sm-12" data-ng-model="info.companyareaid" style="font-size: 15px;height: 35px;"
                                data-ng-options="m.id as m.name for m in zone">
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>电话2</label>
                    </div>
                    <div class="col-sm-4">
                        {{info.phone2}}
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>入职时间</label>
                    </div>
                    <div class="col-sm-4">
                        {{info.entrydate}}
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>户籍地址</label>
                    </div>
                    <div class="col-sm-4">
                        {{info.houseAddress}}
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>状态</label>
                    </div>
                    <div class="col-sm-1">
                        <select class="col-sm-12" data-ng-change="setState()" data-ng-model="info.jobstate" style="font-size: 15px;height: 35px;width: 150px">
                            <option value="1">试用</option>
                            <option value="2">转正</option>
                            <option value="3">离职</option>
                        </select>
                    </div>
                    <div class="col-sm-1" style="margin-left: 62px;" data-ng-hide="jsStateHide">
                        <label>薪资比例</label>
                    </div>
                    <div class="col-sm-1" data-ng-hide="jsStateHide">
                        <select class="col-sm-12" data-ng-model="info.salaryState" style="height: 35px;width: 100px">
                            <option value="1.0">1.0</option>
                            <option value="0.9">0.9</option>
                            <option value="0.8">0.8</option>
                            <option value="0.7">0.7</option>
                            <option value="0.6">0.6</option>
                            <option value="0.5">0.5</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>现居地址</label>
                    </div>
                    <div class="col-sm-4">
                        <input type="text"
                               class="form-control"
                               data-ng-model="info.address"
                                >
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>薪资</label>
                    </div>
                    <div class="col-sm-1">
                        <input type="text" style="width: 150px;"
                               class="form-control"
                               data-ng-model="info.salary"
                               required>
                    </div>
                    <div class="col-sm-1" style="margin-left: 62px;">
                        <label>试用薪资</label>
                    </div>
                    <div class="col-sm-1">
                        {{info.salary*info.salaryState}}
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>邮箱</label>
                    </div>
                    <div class="col-sm-4">
                        {{info.email}}
                    </div>
                    <div class="col-sm-1"></div>
                    <div class="col-sm-1">
                        <label>离职时间</label>
                    </div>
                    <div class="col-sm-4">
                        <div class="input-group ui-datepicker" data-ng-controller="DatepickerDemoCtrl">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            <input type="text"
                                   id="dimissiondate"
                                   class="form-control"
                                   datepicker-popup="yyyy-MM-dd"
                                   is-open="opened"
                                   datepicker-options="dateOptions"
                                   close-text="关闭"
                                   data-ng-model="dt">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>学历</label>
                    </div>
                    <div class="col-sm-4">
                        {{info.eduName}}
                    </div>
                    <div class="col-sm-1"></div>

                    <div class="col-sm-1">
                        <label>担任角色</label>
                    </div>
                    <div class="col-sm-4">
                        <select class="col-sm-12" data-ng-model="info.roleId" style="height: 35px;"
                                data-ng-options="m.id as m.name for m in role">
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-1">
                        <label>备注</label>
                    </div>
                    <div class="col-sm-10">
                        <input type="text"
                               class="form-control"
                               data-ng-model="info.note"
                                >
                    </div>
                </div>
                <div class="form-group has-error has-feedback input-lg" style="height:30px;text-align: center;"><label data-ng-hide="isHideUser" class="control-label">{{showInfo}}</label></div>
                <br/>
                <div class="form-group">
                    <div class="col-sm-1"></div>
                    <div class="col-sm-4">
                        <button type="submit"
                                class="btn btn-info btn-block btn-lg"
                                >保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">function setDate(){$("#dimissiondate").val("");}</script>